FROM openjdk:8-jdk-alpine
MAINTAINER docker
WORKDIR /
# 把target下的httpUtils-0.0.1-SNAPSHOT.jar拷贝的docker的/目录下
ADD target/httpUtils-0.0.1-SNAPSHOT.jar /httpUtils-0.0.1-SNAPSHOT.jar
# 对外暴露的端口
EXPOSE 8097
ENTRYPOINT ["java","-jar","/httpUtils-0.0.1-SNAPSHOT.jar"]